package com.oa.pm.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.oa.core.PageResult;
import com.oa.pm.dto.ResumeAddDTO;
import com.oa.pm.dto.ResumeListParamDTO;
import com.oa.pm.entity.Resume;
import com.baomidou.mybatisplus.service.IService;
import com.oa.pm.vo.ResumeDetailsVO;
import com.oa.pm.vo.ResumeListVO;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 简历库表 服务类
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
public interface IResumeService extends IService<Resume> {
    /**
     * 自定义分页
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageResult<Resume> findList(Integer pageNum, Integer pageSize);

    /**
    * 根据id查询
    */
    ResumeDetailsVO findResumeById(String id);

    PageResult<ResumeListVO> findResumeList(ResumeListParamDTO resumeListParamDTO);

    boolean addResume(ResumeAddDTO resume);

    boolean editResume(ResumeAddDTO resume);

    void export(ResumeListParamDTO resumeListParamDTO, HttpServletResponse response);
}
